import { $demoi18n } from '@/utils/lang';

// 表格列对象默认配置
export const columnItem = {
  field: '',
  mapping: '',
  width: '100',
  fieldType: 'number',
  uploadImgList: [],
  advancedLinkage: {
    linkageDatas: [],
  },
  style: {},
  visible: true,
};

// 表格字段属性选项
export const fieldTypeOptions = [
  {
    value: 'number',
    label: $demoi18n('word.numValue'),
    type: 'num',
  },
  {
    value: 'string',
    label: $demoi18n('word.string'),
    type: 'str',
  },
  {
    value: 'percentage',
    label: $demoi18n('word.percentage'),
    type: 'num',
  },
  {
    value: 'status',
    label: $demoi18n('word.status'),
    type: 'str',
  },
];

export const customStyle = {
  perStyle: 'progressAndPercentage',
  basis: 'max100',
  targetNum: 100,
  percentDecimalCount: 1,
  valueWidth: 50,
  color: '#0d263a',
  statusStyle: 'status',
  statusTable: [
    {
      statusField: '',
      icon: '',
    },
  ],
};
